/*
 * Copyright 2010 Mark Eschbach.
 *
 * $HeadURL$
 * $Id$
 */
package com.meschbach.cise.resource;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

/**
 *
 * @author "Mark Eschbach" &lt;meschbach@gmail.com&gt;
 */
public class FileSink implements Sink {

    File target;

    public FileSink(File target) {
        this.target = target;
    }

    public FileSink(String aTarget) {
        target = new File(aTarget);
    }

    public OutputStream getSink() throws IOException {
        return new FileOutputStream(target);
    }
}
